//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.ComponentModel;
			using System.Data.Common;
			using System.Data;
			using System.Data.SqlClient;
			using System.Drawing;
			using System;
			using System.Resources;
			using System.Windows.Forms;
			
		#endregion
		
	public class frmBACD : Form
	
	{
		
		#region Fields
			private Button btHuyBA;
			private Button btSaveBA;
			private Button button1;
			private Button button2;
			private string checkBA;
			private IContainer components;
			private SqlConnection con;
			private string Cons;
			public int flag;
			private GroupBox gbBA;
			private GroupBox groupBox3;
			private ImageList imageList1;
			private Label label1;
			private Label label3;
			private Label label4;
			private ListBox lbLBA;
			private RadioButton rdBenhA;
			private RadioButton rdCD;
			private ToolTip toolTip1;
			private TextBox txtALBenh;
			private TextBox txtTBA;
		#endregion
		
		#region Constructors
		
			public frmBACD ()
			
			{
				this.flag = 1;
				this.InitializeComponent ();
				this.Cons = Connection.ConnectionString ();
				return;
			}
			
		#endregion
		
		#region Methods
		
			private void btHuyBA_Click (object sender, EventArgs e)
			
			{
				base.Close ();
				return;
			}
			
			private void btSaveBA_Click (object sender, EventArgs e)
			
			{
				if (this.txtALBenh.Text != "")
				{
					goto L_002F;
				}
				DialogResult theDialogResult = MessageBox.Show ("Lo?i b?nh ?n ch?a nh?p.", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_00D6;
				
			L_002F:
				
				{
				}
				if (this.rdBenhA.Checked)
				{
					goto L_005E;
				}
				if (this.rdCD.Checked)
				{
					goto L_005E;
				}
				DialogResult theDialogResult2 = MessageBox.Show ("B?n n?n ch?n lo?i c?y B?nh ho?c C?y Ch?n ?o?n c?n sao l?u", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_00D6;
				
			L_005E:
				
				{
				}
				if (this.lbLBA.Items.Count > 0)
				{
					goto L_0086;
				}
				DialogResult theDialogResult3 = MessageBox.Show ("Danh s?ch t?n b?nh ch?a nh?p", "L?i nh?p", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_00D6;
				
			L_0086:
				
				{
				}
				if (! this.rdBenhA.Checked)
				{
					goto L_00AE;
				}
				if (MessageBox.Show ("B?n c? ??ng ? nh?p lo?i B?nh ?n", "Nh?p", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
				{
					goto L_00AE;
				}
				this.IBAn ();
				
			L_00AE:
				
				{
				}
				if (! this.rdCD.Checked)
				{
					goto L_00D6;
				}
				if (MessageBox.Show ("B?n c? ??ng ? nh?p lo?i Ch?n ?o?n.", "Nh?p", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.Yes)
				{
					goto L_00D6;
				}
				this.ICDoan ();
				
			L_00D6:
				return;
			}
			
			private void button1_Click (object sender, EventArgs e)
			
			{
				if (this.txtALBenh.Text != "")
				{
					goto L_002C;
				}
				DialogResult theDialogResult = MessageBox.Show ("Lo?i b?nh ch?a ???c nh?p!", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_00A0;
				
			L_002C:
				
				{
				}
				if (this.txtTBA.Text != "")
				{
					goto L_0058;
				}
				DialogResult theDialogResult2 = MessageBox.Show ("T?n b?nh ch?a ???c nh?p!", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_00A0;
				
			L_0058:
				
				{
				}
				if (this.txtTBA.Text == "")
				{
					goto L_00A0;
				}
				int i = this.lbLBA.Items.Add (this.txtTBA.Text.ToString ());
				this.txtTBA.Text = "";
				
			L_00A0:
				return;
			}
			
			private void button2_Click (object sender, EventArgs e)
			
			{
				if (this.lbLBA.SelectedIndex == -1)
				{
					goto L_0029;
				}
				this.lbLBA.Items.RemoveAt (this.lbLBA.SelectedIndex);
				
			L_0029:
				return;
			}
			
			private bool checkIBA ()
			
			{
				string theString;
				SqlParameter theSqlParameter;
				SqlCommand theSqlCommand;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string theString2;
				bool theBoolean;
				this.con = new SqlConnection (this.Cons);
				this.con.Open ();
				theString = "select * from sicktree where sktName=@sktName";
				theSqlParameter = ((SqlParameter) null);
				theSqlCommand = new SqlCommand (theString, this.con);
				theSqlParameter = new SqlParameter ("@sktName", SqlDbType.NVarChar);
				theSqlParameter.Value = this.txtALBenh.Text;
				SqlParameter theSqlParameter2 = theSqlCommand.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, "sicktree");
				theDataTable = theDataSet.Tables["sicktree"];
				theString2 = "";
				if (theDataTable.Rows.Count <= 0)
				{
					goto L_00BB;
				}
				theString2 = theDataTable.Rows[0][1].ToString ();
				
			L_00BB:
				
				{
				}
				if (theString2 != this.txtALBenh.Text)
				{
					goto L_00D4;
				}
				theBoolean = false;
				goto L_00D9;
				
			L_00D4:
				
				{
				}
				theBoolean = true;
				goto L_00D9;
				
			L_00D9:
				
				{
				}
				return theBoolean;
			}
			
			private bool checkICDoan ()
			
			{
				string theString;
				SqlParameter theSqlParameter;
				SqlCommand theSqlCommand;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string theString2;
				bool theBoolean;
				theString = "select * from PathologicalTree  where pltName=@pltName";
				theSqlParameter = ((SqlParameter) null);
				theSqlCommand = new SqlCommand (theString, this.con);
				theSqlParameter = new SqlParameter ("@pltName", SqlDbType.NVarChar);
				theSqlParameter.Value = this.txtALBenh.Text;
				SqlParameter theSqlParameter2 = theSqlCommand.Parameters.Add (theSqlParameter);
				theSqlDataAdapter = new SqlDataAdapter (theSqlCommand);
				theDataSet = new DataSet ();
				int i = theSqlDataAdapter.Fill (theDataSet, " PathologicalTree");
				theDataTable = theDataSet.Tables[0];
				theString2 = "";
				if (theDataTable.Rows.Count <= 0)
				{
					goto L_009B;
				}
				theString2 = theDataTable.Rows[0][1].ToString ();
				
			L_009B:
				
				{
				}
				if (theString2 != this.txtALBenh.Text.Trim ())
				{
					goto L_00B9;
				}
				theBoolean = false;
				goto L_00BE;
				
			L_00B9:
				
				{
				}
				theBoolean = true;
				goto L_00BE;
				
			L_00BE:
				
				{
				}
				return theBoolean;
			}
			
			protected override void Dispose (bool disposing)
			
			{
				this.flag = 0;
				if (! disposing)
				{
					goto L_001D;
				}
				if (this.components == null)
				{
					goto L_001D;
				}
				this.components.Dispose ();
				
			L_001D:
				
				{
				}
				base.Dispose (disposing);
				return;
			}
			
			private void frmBACD_Load (object sender, EventArgs e)
			
			{
				return;
			}
			
			private void IBAn ()
			
			{
				string theString;
				SqlParameter theSqlParameter;
				SqlCommand theSqlCommand;
				Exception theException;
				string theString2;
				SqlParameter theSqlParameter2;
				SqlCommand theSqlCommand2;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string theString3;
				int i;
				string theString4;
				SqlCommand theSqlCommand3;
				Exception theException2;
				if (this.checkIBA ())
				{
					goto L_0020;
				}
				DialogResult theDialogResult = MessageBox.Show ("Lo?i b?nh n?y ?? t?n t?i trong d? c? s? d? li?u.", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_023B;
				
			L_0020:
				
				{
				}
				this.con = new SqlConnection (this.Cons);
				
			L_0031:
				try
				{
					theString = "Insert into sicktree(sktname) values(@sktname)";
					theSqlParameter = ((SqlParameter) null);
					theSqlCommand = new SqlCommand (theString, this.con);
					theSqlParameter = new SqlParameter ("@sktname", SqlDbType.NVarChar);
					theSqlParameter.Value = this.txtALBenh.Text;
					SqlParameter theSqlParameter3 = theSqlCommand.Parameters.Add (theSqlParameter);
					this.con.Open ();
					int i2 = theSqlCommand.ExecuteNonQuery ();
					this.con.Close ();
				}
				catch (Exception theException3)
				{
					
				L_0090:
					theException = theException3;
					DialogResult theDialogResult2 = MessageBox.Show (theException.Message.ToString ());
				}
				
			L_00A4:
				try
				{
					theString2 = "select * from sicktree where sktName=@sktName";
					theSqlParameter2 = ((SqlParameter) null);
					theSqlCommand2 = new SqlCommand (theString2, this.con);
					theSqlParameter2 = new SqlParameter ("@sktName", SqlDbType.NVarChar);
					theSqlParameter2.Value = this.txtALBenh.Text;
					SqlParameter theSqlParameter4 = theSqlCommand2.Parameters.Add (theSqlParameter2);
					theSqlDataAdapter = new SqlDataAdapter (theSqlCommand2);
					theDataSet = new DataSet ();
					int i3 = theSqlDataAdapter.Fill (theDataSet, "sicktree");
					theDataTable = theDataSet.Tables[0];
					theString3 = theDataTable.Rows[0][0].ToString ();
					i = 0;
					goto L_01BD;
					
				L_013C:
					
					{
					}
					theString4 = string.Concat ("Insert into sicks values(", theString3, ",@sckName)");
					theSqlCommand3 = new SqlCommand (theString4, this.con);
					theSqlParameter2 = new SqlParameter ("@sckName", SqlDbType.NVarChar);
					theSqlParameter2.Value = this.lbLBA.Items[i].ToString ();
					SqlParameter theSqlParameter5 = theSqlCommand3.Parameters.Add (theSqlParameter2);
					this.con.Open ();
					int i4 = theSqlCommand3.ExecuteNonQuery ();
					this.con.Close ();
					i++;
					
				L_01BD:
					
					{
					}
					if (i < this.lbLBA.Items.Count)
					{
						goto L_013C;
					}
					DialogResult theDialogResult3 = MessageBox.Show ("D? li?u ?? ???c nh?p", "Nh?p", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.txtALBenh.Text = "";
					this.txtTBA.Text = "";
					this.lbLBA.Text = ((string) null);
					this.lbLBA.Items.Clear ();
				}
				catch (Exception theException4)
				{
					
				L_0225:
					theException2 = theException4;
					DialogResult theDialogResult4 = MessageBox.Show (theException2.Message.ToString ());
				}
				
			L_023B:
				return;
			}
			
			private void ICDoan ()
			
			{
				string theString;
				SqlParameter theSqlParameter;
				SqlCommand theSqlCommand;
				Exception theException;
				string theString2;
				SqlParameter theSqlParameter2;
				SqlCommand theSqlCommand2;
				SqlDataAdapter theSqlDataAdapter;
				DataSet theDataSet;
				DataTable theDataTable;
				string theString3;
				int i;
				string theString4;
				SqlCommand theSqlCommand3;
				Exception theException2;
				this.con = new SqlConnection (this.Cons);
				if (this.checkICDoan ())
				{
					goto L_0031;
				}
				DialogResult theDialogResult = MessageBox.Show ("Lo?i b?nh n?y ?? t?n t?i trong d? c? s? d? li?u.", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_025D;
				
			L_0031:
				try
				{
					theString = "Insert into PathologicalTree (pltname) values(@pltname)";
					theSqlParameter = ((SqlParameter) null);
					theSqlCommand = new SqlCommand (theString, this.con);
					theSqlParameter = new SqlParameter ("@pltName", SqlDbType.NVarChar);
					theSqlParameter.Value = this.txtALBenh.Text;
					SqlParameter theSqlParameter3 = theSqlCommand.Parameters.Add (theSqlParameter);
					this.con.Open ();
					int i2 = theSqlCommand.ExecuteNonQuery ();
					this.con.Close ();
				}
				catch (Exception theException3)
				{
					
				L_0090:
					theException = theException3;
					DialogResult theDialogResult2 = MessageBox.Show (theException.Message.ToString ());
				}
				
			L_00A4:
				try
				{
					theString2 = "select * from PathologicalTree  where pltName=@pltName";
					theSqlParameter2 = ((SqlParameter) null);
					theSqlCommand2 = new SqlCommand (theString2, this.con);
					theSqlParameter2 = new SqlParameter ("@pltName", SqlDbType.NVarChar);
					theSqlParameter2.Value = this.txtALBenh.Text;
					SqlParameter theSqlParameter4 = theSqlCommand2.Parameters.Add (theSqlParameter2);
					theSqlDataAdapter = new SqlDataAdapter (theSqlCommand2);
					theDataSet = new DataSet ();
					int i3 = theSqlDataAdapter.Fill (theDataSet, " PathologicalTree");
					theDataTable = theDataSet.Tables[0];
					theString3 = theDataTable.Rows[0][0].ToString ();
					this.checkBA = theDataTable.Rows[0][1].ToString ();
					i = 0;
					goto L_01DB;
					
				L_015A:
					
					{
					}
					theString4 = string.Concat ("Insert into PathologicalSigns values(", theString3, ",@plsPathologicalSigns)");
					theSqlCommand3 = new SqlCommand (theString4, this.con);
					theSqlParameter2 = new SqlParameter ("@plsPathologicalSigns", SqlDbType.NVarChar);
					theSqlParameter2.Value = this.lbLBA.Items[i].ToString ();
					SqlParameter theSqlParameter5 = theSqlCommand3.Parameters.Add (theSqlParameter2);
					this.con.Open ();
					int i4 = theSqlCommand3.ExecuteNonQuery ();
					this.con.Close ();
					i++;
					
				L_01DB:
					
					{
					}
					if (i < this.lbLBA.Items.Count)
					{
						goto L_015A;
					}
					DialogResult theDialogResult3 = MessageBox.Show ("D? li?u ?? ???c nh?p", "Nh?p", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.txtALBenh.Text = "";
					this.txtTBA.Text = "";
					this.lbLBA.Text = "";
					this.lbLBA.Items.Clear ();
				}
				catch (Exception theException4)
				{
					
				L_0247:
					theException2 = theException4;
					DialogResult theDialogResult4 = MessageBox.Show (theException2.Message.ToString ());
				}
				
			L_025D:
				return;
			}
			
			private void InitializeComponent ()
			
			{
				ResourceManager theResourceManager;
				Control[] theControlArray;
				Control[] theControlArray2;
				Control[] theControlArray3;
				this.components = ((IContainer) new System.ComponentModel.Container ());
				theResourceManager = new ResourceManager (typeof (frmBACD));
				this.groupBox3 = new GroupBox ();
				this.rdBenhA = new RadioButton ();
				this.rdCD = new RadioButton ();
				this.label3 = new Label ();
				this.label4 = new Label ();
				this.btSaveBA = new Button ();
				this.txtALBenh = new TextBox ();
				this.btHuyBA = new Button ();
				this.gbBA = new GroupBox ();
				this.button2 = new Button ();
				this.button1 = new Button ();
				this.lbLBA = new ListBox ();
				this.txtTBA = new TextBox ();
				this.label1 = new Label ();
				this.imageList1 = new ImageList (this.components);
				this.toolTip1 = new ToolTip (this.components);
				this.groupBox3.SuspendLayout ();
				this.gbBA.SuspendLayout ();
				base.SuspendLayout ();
				theControlArray = new Control[2];
				theControlArray[0] = ((Control) this.rdBenhA);
				theControlArray[1] = ((Control) this.rdCD);
				this.groupBox3.Controls.AddRange (theControlArray);
				this.groupBox3.FlatStyle = FlatStyle.Flat;
				this.groupBox3.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.groupBox3.Location = new Point (176, 8);
				this.groupBox3.Name = "groupBox3";
				this.groupBox3.Size = new System.Drawing.Size (240, 40);
				this.groupBox3.TabIndex = 4;
				this.groupBox3.TabStop = false;
				this.rdBenhA.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.rdBenhA.ForeColor = SystemColors.ActiveCaption;
				this.rdBenhA.Location = new Point (8, 11);
				this.rdBenhA.Name = "rdBenhA";
				this.rdBenhA.Size = new System.Drawing.Size (96, 24);
				this.rdBenhA.TabIndex = 1;
				this.rdBenhA.Text = "C?y B?nh";
				this.rdCD.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Bold, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.rdCD.ForeColor = SystemColors.ActiveCaption;
				this.rdCD.Location = new Point (104, 11);
				this.rdCD.Name = "rdCD";
				this.rdCD.Size = new System.Drawing.Size (128, 24);
				this.rdCD.TabIndex = 2;
				this.rdCD.Text = "C?y ch?n ?o?n";
				this.label3.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label3.Location = new Point (8, 61);
				this.label3.Name = "label3";
				this.label3.Size = new System.Drawing.Size (72, 23);
				this.label3.TabIndex = 0;
				this.label3.Text = "T?n b?nh:";
				this.label4.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label4.Location = new Point (8, 31);
				this.label4.Name = "label4";
				this.label4.Size = new System.Drawing.Size (80, 23);
				this.label4.TabIndex = 0;
				this.label4.Text = "Lo?i b?nh:";
				this.btSaveBA.FlatStyle = FlatStyle.Popup;
				this.btSaveBA.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btSaveBA.Location = new Point (352, 304);
				this.btSaveBA.Name = "btSaveBA";
				this.btSaveBA.Size = new System.Drawing.Size (80, 23);
				this.btSaveBA.TabIndex = 7;
				this.btSaveBA.Text = "L?u";
				this.btSaveBA.Click += new EventHandler (this.btSaveBA_Click);
				this.txtALBenh.BorderStyle = BorderStyle.FixedSingle;
				this.txtALBenh.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtALBenh.Location = new Point (160, 24);
				this.txtALBenh.Name = "txtALBenh";
				this.txtALBenh.Size = new System.Drawing.Size (224, 22);
				this.txtALBenh.TabIndex = 3;
				this.txtALBenh.Text = "";
				this.btHuyBA.FlatStyle = FlatStyle.Popup;
				this.btHuyBA.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.btHuyBA.Location = new Point (440, 304);
				this.btHuyBA.Name = "btHuyBA";
				this.btHuyBA.Size = new System.Drawing.Size (80, 23);
				this.btHuyBA.TabIndex = 8;
				this.btHuyBA.Text = "Tho?t";
				this.btHuyBA.Click += new EventHandler (this.btHuyBA_Click);
				theControlArray2 = new Control[8];
				theControlArray2[0] = ((Control) this.button2);
				theControlArray2[1] = ((Control) this.button1);
				theControlArray2[2] = ((Control) this.lbLBA);
				theControlArray2[3] = ((Control) this.txtALBenh);
				theControlArray2[4] = ((Control) this.label3);
				theControlArray2[5] = ((Control) this.label4);
				theControlArray2[6] = ((Control) this.txtTBA);
				theControlArray2[7] = ((Control) this.label1);
				this.gbBA.Controls.AddRange (theControlArray2);
				this.gbBA.Font = new System.Drawing.Font ("Verdana", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.gbBA.Location = new Point (16, 56);
				this.gbBA.Name = "gbBA";
				this.gbBA.Size = new System.Drawing.Size (504, 240);
				this.gbBA.TabIndex = 2;
				this.gbBA.TabStop = false;
				this.button2.FlatStyle = FlatStyle.Popup;
				this.button2.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.button2.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("button2.Image")));
				this.button2.Location = new Point (432, 56);
				this.button2.Name = "button2";
				this.button2.Size = new System.Drawing.Size (32, 24);
				this.button2.TabIndex = 6;
				this.toolTip1.SetToolTip (((Control) this.button2), "Lo?i b? t?n b?nh t? danh s?ch");
				this.button2.Click += new EventHandler (this.button2_Click);
				this.button1.FlatStyle = FlatStyle.Popup;
				this.button1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.button1.Image = ((Image) ((Bitmap) theResourceManager.GetObject ("button1.Image")));
				this.button1.Location = new Point (392, 56);
				this.button1.Name = "button1";
				this.button1.Size = new System.Drawing.Size (32, 24);
				this.button1.TabIndex = 5;
				this.toolTip1.SetToolTip (((Control) this.button1), "Th?m danh s?ch t?n b?nh");
				this.button1.Click += new EventHandler (this.button1_Click);
				this.lbLBA.BorderStyle = BorderStyle.FixedSingle;
				this.lbLBA.ItemHeight = 16;
				this.lbLBA.Location = new Point (160, 88);
				this.lbLBA.Name = "lbLBA";
				this.lbLBA.Size = new System.Drawing.Size (336, 130);
				this.lbLBA.TabIndex = 6;
				this.lbLBA.DoubleClick += new EventHandler (this.lbLBA_DoubleClick);
				this.txtTBA.BorderStyle = BorderStyle.FixedSingle;
				this.txtTBA.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.txtTBA.Location = new Point (160, 56);
				this.txtTBA.Name = "txtTBA";
				this.txtTBA.Size = new System.Drawing.Size (224, 22);
				this.txtTBA.TabIndex = 4;
				this.txtTBA.Text = "";
				this.txtTBA.TabIndexChanged += new EventHandler (this.txtTBA_TabIndexChanged);
				this.txtTBA.KeyPress += new KeyPressEventHandler (this.txtTBA_KeyPress);
				this.label1.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				this.label1.Location = new Point (8, 93);
				this.label1.Name = "label1";
				this.label1.Size = new System.Drawing.Size (144, 23);
				this.label1.TabIndex = 0;
				this.label1.Text = "Danh s?ch t?n b?nh:";
				this.imageList1.ColorDepth = ColorDepth.Depth8Bit;
				this.imageList1.ImageSize = new System.Drawing.Size (16, 16);
				this.imageList1.ImageStream = ((ImageListStreamer) theResourceManager.GetObject ("imageList1.ImageStream"));
				this.imageList1.TransparentColor = Color.Transparent;
				this.AutoScaleBaseSize = new System.Drawing.Size (7, 15);
				base.ClientSize = new System.Drawing.Size (534, 331);
				theControlArray3 = new Control[4];
				theControlArray3[0] = ((Control) this.groupBox3);
				theControlArray3[1] = ((Control) this.gbBA);
				theControlArray3[2] = ((Control) this.btHuyBA);
				theControlArray3[3] = ((Control) this.btSaveBA);
				base.Controls.AddRange (theControlArray3);
				this.Font = new System.Drawing.Font ("Verdana", 9F, FontStyle.Regular, GraphicsUnit.Point, ((byte) byte.MinValue));
				base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
				base.MaximizeBox = false;
				base.MinimizeBox = false;
				base.Name = "frmBACD";
				base.StartPosition = FormStartPosition.CenterScreen;
				this.Text = "C?y B?nh & C?y Ch?n ?o?n";
				base.KeyPress += new KeyPressEventHandler (this.txtTBA_KeyPress);
				base.Load += new EventHandler (this.frmBACD_Load);
				base.DoubleClick += new EventHandler (this.lbLBA_DoubleClick);
				this.groupBox3.ResumeLayout (false);
				this.gbBA.ResumeLayout (false);
				base.ResumeLayout (false);
				return;
			}
			
			private void lbLBA_DoubleClick (object sender, EventArgs e)
			
			{
				if (this.lbLBA.SelectedIndex == -1)
				{
					goto L_0029;
				}
				this.lbLBA.Items.RemoveAt (this.lbLBA.SelectedIndex);
				
			L_0029:
				return;
			}
			
			private static void Main ()
			
			{
				Application.Run (((Form) new frmBACD ()));
				return;
			}
			
			private void txtTBA_KeyPress (object sender, KeyPressEventArgs e)
			
			{
				if (e.KeyChar != '\r')
				{
					goto L_0052;
				}
				if (this.txtTBA.Text == "")
				{
					goto L_0052;
				}
				int i = this.lbLBA.Items.Add (this.txtTBA.Text.ToString ());
				this.txtTBA.Text = "";
				
			L_0052:
				return;
			}
			
			private void txtTBA_Leave (object sender, EventArgs e)
			
			{
				if (this.txtALBenh.Text != "")
				{
					goto L_002C;
				}
				DialogResult theDialogResult = MessageBox.Show ("T?n b?nh ch?a nh?p ???c nh?p!", "L?i", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
				goto L_005D;
				
			L_002C:
				
				{
				}
				int i = this.lbLBA.Items.Add (this.txtTBA.Text.ToString ());
				this.txtTBA.Text = "";
				
			L_005D:
				return;
			}
			
			private void txtTBA_TabIndexChanged (object sender, EventArgs e)
			
			{
				int i = this.lbLBA.Items.Add (this.txtTBA.Text.ToString ());
				this.txtTBA.Text = "";
				return;
			}
			
		#endregion
	}
	
}

